<tagLib name="html" />
<include file="Public:header" />
<script src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<div id="main" class="main" >
<div class="content">
<div class="title">新增房间 [ <a href="__URL__">返回列表</a> ]</div>
<form method='post' id="form1" action="__URL__/insert/" >
<table cellpadding=3 cellspacing=3>
 <tr>
	<td class="tRight" >所属房型：</td>
	<td class="tLeft" >
            <select name="hotel" style="width:200px;" onchange="modifyHouse(this);">
                        <option value="0">--请选择公寓--</option>
                        <volist name="hotel" id="ht">
                            <option value="{$ht.id}">{$ht.name}</option>
                        </volist>
                    </select>
                    {$vo.house_id|makeHouse=1}
            </notempty>
        </td>
</tr>
<tr>
	<td class="tRight" >房间名称（编号）：</td>
	<td class="tLeft" >
            <input type="text" class="medium bLeftRequire"  check='Require' warning="公寓名不能为空" id="room_no" name="room_no" value="">
        </td>
</tr>

<tr>
	<td class="tRight" >备注：</td>
	<td class="tLeft" >
            <textarea name="note" cols="57" rows="8"></textarea>
        </td>
</tr>
<tr>
	<td class="tRight" >排序：</td>
	<td class="tLeft" >
            <input type="text" class="small" name="sort">
        </td>
</tr>
<tr>
	<td class="tRight">状态：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="status">
	<option value="1">启用</option>
	<option value="0">禁用</option>
	</SELECT></td>
</tr>

<tr>
	<td></td>
	<td class="center">
	<input type="submit" value="保 存" class="small submit">
	<input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" >
	</td>
</tr>
</table>
</form>
<script type="text/javascript">
   function addMore(id){
       if(id == 0){
           //$str = '<input type="text" class="medium easyui-datetimebox" id="clean_time" name="clean_time">';
           $str = $('input[name="clean_time1"]').val()+',';
           $('#clean_time').attr('value', $str + $('#clean_time').val());
       }
       if(id == 1){
           $str = $('input[name="maintain_time1"]').val()+',';
           $('#maintain_time').attr('value', $str + $('#maintain_time').val());
       }
            
        }
</script>
</div>
</div>
